<!--HTML-->
<% layout('/modules/cmsfront/themes/layouts/default.html', {title:site.siteName+'-首页',libs: []}){ %>

		<div class="container">
		<div class="row">
			<div class="col-lg-12 ">
				<div class="bs-component page-header">
					<div class="jumbotron">
						<h1>JeeSite平台简介</h1>
						<p>${site.description}</p>
						<p>
							<a class="btn btn-primary btn-lg" href="http://www.jeesite.com" target="_blank">更多</a>
						</p>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-lg-12">
				<h2>站内栏目</h2>
			</div>
		</div>
		
		<div class="row">
		
		
		    <#html:foreach items="${categoryList(site.siteCode, '0', 16, '')}" var="category,status">
				<div class="col-lg-4">
					<div class="bs-component">
						<div class="panel panel-primary">
							<div class="panel-heading">
								<h3 class="panel-title"><small><a href="${ctx}/list-${category.categoryCode}" class="pull-right">更多&gt;&gt;</a></small>${category.categoryName}</h3>
							</div>
							<div class="panel-body">
							<ul>
							<#html:foreach items="${articleList(site.siteCode,category.categoryCode,10)}" var="article,status">
                      		  <li> <a href="${article.url}" style="color:${article.color}">${status.index}  ${abbr(article.title,28)} ${article.updateDate,'yyyy-MM-dd'}</a> </li>
                      		  </#html:foreach>
							</ul>
							
							</div>
							<div class="panel-footer"></div>
						</div>
						
						
					</div>
				</div>
		    </#html:foreach>
		</div>

<% } %>
